﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <style>
      html, body,#map-canvas {
        height: 100%;
        margin: 0px;
        padding: 0px
      }
    </style>
    <link href="LibreriasScript/bootstrap-3.1.1-dist/css/bootstrap-theme.min.css" rel="stylesheet" />
    <link href="LibreriasScript/bootstrap-3.1.1-dist/css/bootstrap.min.css" rel="stylesheet" />
    <script src="LibreriasScript/JQuery/jquery-1.11.0.min.js"></script>
    <script src="LibreriasScript/bootstrap-3.1.1-dist/js/bootstrap.min.js"></script>    
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=true&libraries=geometry"></script>
    <script src="LibreriasScript/MapsApi.js"></script>
    <script src="LibreriasScript/FuncionesVisualizar.js"></script>
    <script src="LibreriasScript/FuncionesHome.js"></script>
    <title>JusTime</title>
    <script type="text/javascript">
        $(document).ready(function () {
            initializeMap();
        });
    </script>
    <style>
        #panel {
            position: absolute;
            top: 80px;
            left: 90%;
            margin-left: -180px;
            z-index: 5;
            background-color: #fff;
            padding: 5px;
            border: 1px solid #999;
          }
    </style>
</head>
<body onload="VerElementosPaginaVisualizar()">
    <div style="background:#848484" id="panel">        
    </div>
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <a href="Home.html" class="navbar-brand" style="width:150px; height:65px"><img src="Recursos/JusTimeHome.png" height="auto" width=100%" /></a>
            </div>
            <div class="collapse navbar-collapse">
                <br />
                <ul class="nav navbar-nav">                    
                    <li><a data-toggle="modal" data-target="#VerDistancia"><span class="glyphicon glyphicon-comment">   </span>  Calcular distancias</a></li>                        
                </ul>
            </div><!--/.nav-collapse --> 
        </div>
    </div>
    <div id="map-canvas"></div>
    <div class="modal fade bs-example-modal-sm" id="VerDistancia" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="H2">Distancia entre buses</h4>
                </div>
                <div class="modal-body">
                    <div class="panel panel-info">
                        <div class="panel-heading">Informacion de la ruta</div>
                        <div class="panel-body">
                            <input type="text" class="form-control" placeholder="Primer bus" id="tPrimerBus"><br />
                            <input type="text" class="form-control" placeholder="Segundo bus" id="tSegundoBus"><br />
                            <button type="button" class="btn btn-default" onclick="CalcularDistancia()">Calcular</button>
                            <font size="2" color="red" id="tCalculoDistancia"></font>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
                </div>
            </div>
        </div>
    </div>
</body>
</html>